#  _*_ coding: utf-8 _*_

from django.forms import ModelForm, DateTimeInput
from bbs.models import Topic, User_Info

__author__ = 'Administrator'
from django import forms

class RegistForm(forms.Form):
    username = forms.CharField(label='用户名')
    password = forms.CharField(label='密码',widget=forms.PasswordInput)
    password_confirm = forms.CharField(label='确认密码',widget=forms.PasswordInput)



class UserInfoForm(ModelForm):
    class Meta:
        model = User_Info
        fields = ['nickname','city','sex','birthday','constellation','job','signature',
                  'portrait']


class TopicForm(ModelForm):
    class Meta:
        model = Topic
        fields = ['topic_title','topic_content','topic_board']
